package com.sai.jsai.common.base.exception;

/**
 * @author jisai
 * @version 0.0.1
 * @Description 业务通用错误码
 * @createTime 2024/09/21
 */
public enum CommonBizErrorCode implements ErrorCode {
    SUCCESS(200, "操作成功"),
    VALIDATION_FAIL(400, "请求参数不正确");



    private Integer code;


    private String message;

    CommonBizErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

}
